<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the NIMAndroidSDKOptions constructor from Class NIMAndroidSDKOptions from the nim_core_v2 library, for the Dart programming language.">
  <title>NIMAndroidSDKOptions constructor - NIMAndroidSDKOptions - nim_core_v2 library - Dart API</title>


  
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" rel="stylesheet">
  
  <link rel="stylesheet" href="../../static-assets/github.css?v1">
  <link rel="stylesheet" href="../../static-assets/styles.css?v1">
  <link rel="icon" href="../../static-assets/favicon.png?v1">
  
</head>

<body data-base-href="../../" data-using-base-href="false" class="light-theme">
<div id="overlay-under-drawer"></div>
<header id="title">
  <span id="sidenav-left-toggle" class="material-symbols-outlined" role="button" tabindex="0">menu</span>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="../../index.html">nim_core_v2</a></li>
    <li><a href="../../nim_core_v2/nim_core_v2-library.html">nim_core.dart</a></li>
    <li><a href="../../nim_core_v2/NIMAndroidSDKOptions-class.html">NIMAndroidSDKOptions</a></li>
    <li class="self-crumb">NIMAndroidSDKOptions constructor</li>
  </ol>
  <div class="self-name">NIMAndroidSDKOptions</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
  <div class="toggle" id="theme-button" title="Toggle brightness">
    <label for="theme">
      <input type="checkbox" id="theme" value="light-theme">
      <span id="dark-theme-button" class="material-symbols-outlined">
        dark_mode
      </span>
      <span id="light-theme-button" class="material-symbols-outlined">
        light_mode
      </span>
    </label>
  </div>
</header>
<main>
  <div
      id="dartdoc-main-content"
      class="main-content"
      data-above-sidebar="nim_core_v2&#47;NIMAndroidSDKOptions-class-sidebar.html"
      data-below-sidebar="">
      <div>
<h1><span class="kind-constructor">NIMAndroidSDKOptions</span> constructor 
</h1></div>

    <section class="multi-line-signature">
      
      <span class="name ">NIMAndroidSDKOptions</span>(<wbr>{<ol class="parameter-list"> <li><span class="parameter" id="-param-improveSDKProcessPriority"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">improveSDKProcessPriority</span> = <span class="default-value">true</span>, </span></li>
<li><span class="parameter" id="-param-preLoadServers"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">preLoadServers</span> = <span class="default-value">true</span>, </span></li>
<li><span class="parameter" id="-param-reducedIM"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">reducedIM</span> = <span class="default-value">false</span>, </span></li>
<li><span class="parameter" id="-param-checkManifestConfig"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">checkManifestConfig</span> = <span class="default-value">false</span>, </span></li>
<li><span class="parameter" id="-param-disableAwake"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">disableAwake</span> = <span class="default-value">false</span>, </span></li>
<li><span class="parameter" id="-param-enabledQChatMessageCache"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">enabledQChatMessageCache</span> = <span class="default-value">false</span>, </span></li>
<li><span class="parameter" id="-param-databaseEncryptKey"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">databaseEncryptKey</span>, </span></li>
<li><span class="parameter" id="-param-thumbnailSize"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a></span> <span class="parameter-name">thumbnailSize</span> = <span class="default-value">350</span>, </span></li>
<li><span class="parameter" id="-param-fetchServerTimeInterval"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a></span> <span class="parameter-name">fetchServerTimeInterval</span> = <span class="default-value">2000</span>, </span></li>
<li><span class="parameter" id="-param-customPushContentType"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">customPushContentType</span>, </span></li>
<li><span class="parameter" id="-param-mixPushConfig"><span class="type-annotation"><a href="../../nim_core_v2/NIMMixPushConfig-class.html">NIMMixPushConfig</a>?</span> <span class="parameter-name">mixPushConfig</span>, </span></li>
<li><span class="parameter" id="-param-notificationConfig"><span class="type-annotation"><a href="../../nim_core_v2/NIMStatusBarNotificationConfig-class.html">NIMStatusBarNotificationConfig</a>?</span> <span class="parameter-name">notificationConfig</span>, </span></li>
<li><span class="parameter" id="-param-displayNameForMessageNotifierProvider"><span class="type-annotation"><a href="../../nim_core_v2/NIMDisplayNameForMessageNotifierProvider.html">NIMDisplayNameForMessageNotifierProvider</a>?</span> <span class="parameter-name">displayNameForMessageNotifierProvider</span>, </span></li>
<li><span class="parameter" id="-param-avatarForMessageNotifierProvider"><span class="type-annotation"><a href="../../nim_core_v2/NIMAvatarForMessageNotifierProvider.html">NIMAvatarForMessageNotifierProvider</a>?</span> <span class="parameter-name">avatarForMessageNotifierProvider</span>, </span></li>
<li><span class="parameter" id="-param-displayTitleForMessageNotifierProvider"><span class="type-annotation"><a href="../../nim_core_v2/NIMDisplayTitleForMessageNotifierProvider.html">NIMDisplayTitleForMessageNotifierProvider</a>?</span> <span class="parameter-name">displayTitleForMessageNotifierProvider</span>, </span></li>
<li><span class="parameter" id="-param-makeNotifyContentProvider"><span class="type-annotation"><a href="../../nim_core_v2/NIMMakeNotifyContentProvider.html">NIMMakeNotifyContentProvider</a>?</span> <span class="parameter-name">makeNotifyContentProvider</span>, </span></li>
<li><span class="parameter" id="-param-makeTickerProvider"><span class="type-annotation"><a href="../../nim_core_v2/NIMMakeTickerProvider.html">NIMMakeTickerProvider</a>?</span> <span class="parameter-name">makeTickerProvider</span>, </span></li>
<li><span class="parameter" id="-param-makeRevokeMsgTipProvider"><span class="type-annotation"><a href="../../nim_core_v2/NIMMakeRevokeMsgTipProvider.html">NIMMakeRevokeMsgTipProvider</a>?</span> <span class="parameter-name">makeRevokeMsgTipProvider</span>, </span></li>
<li><span class="parameter" id="-param-enableV2CloudConversation"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">enableV2CloudConversation</span> = <span class="default-value">false</span>, </span></li>
<li><span class="parameter" id="-param-enableMessageNotifierCustomization"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">enableMessageNotifierCustomization</span> = <span class="default-value">false</span>, </span></li>
<li><span class="parameter" id="-param-manualProvidePushTokenProvider"><span class="type-annotation"><a href="../../nim_core_v2/NIManualProvidePushTokenProvider.html">NIManualProvidePushTokenProvider</a>?</span> <span class="parameter-name">manualProvidePushTokenProvider</span>, </span></li>
<li><span class="parameter" id="-param-enableUserInfoProvider"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">enableUserInfoProvider</span> = <span class="default-value">false</span>, </span></li>
<li><span class="parameter" id="-param-appKey"><span>required</span> <span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span> <span class="parameter-name">appKey</span>, </span></li>
<li><span class="parameter" id="-param-sdkRootDir"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">sdkRootDir</span>, </span></li>
<li><span class="parameter" id="-param-cdnTrackInterval"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a>?</span> <span class="parameter-name">cdnTrackInterval</span>, </span></li>
<li><span class="parameter" id="-param-customClientType"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a>?</span> <span class="parameter-name">customClientType</span>, </span></li>
<li><span class="parameter" id="-param-shouldSyncStickTopSessionInfos"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">shouldSyncStickTopSessionInfos</span>, </span></li>
<li><span class="parameter" id="-param-enableReportLogAutomatically"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enableReportLogAutomatically</span>, </span></li>
<li><span class="parameter" id="-param-loginCustomTag"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">loginCustomTag</span>, </span></li>
<li><span class="parameter" id="-param-enableDatabaseBackup"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enableDatabaseBackup</span>, </span></li>
<li><span class="parameter" id="-param-shouldSyncUnreadCount"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">shouldSyncUnreadCount</span>, </span></li>
<li><span class="parameter" id="-param-shouldConsiderRevokedMessageUnreadCount"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">shouldConsiderRevokedMessageUnreadCount</span>, </span></li>
<li><span class="parameter" id="-param-enableTeamMessageReadReceipt"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enableTeamMessageReadReceipt</span>, </span></li>
<li><span class="parameter" id="-param-shouldTeamNotificationMessageMarkUnread"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">shouldTeamNotificationMessageMarkUnread</span>, </span></li>
<li><span class="parameter" id="-param-enableAnimatedImageThumbnail"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enableAnimatedImageThumbnail</span>, </span></li>
<li><span class="parameter" id="-param-enablePreloadMessageAttachment"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">enablePreloadMessageAttachment</span>, </span></li>
<li><span class="parameter" id="-param-useAssetServerAddressConfig"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">useAssetServerAddressConfig</span>, </span></li>
<li><span class="parameter" id="-param-nosSceneConfig"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/Map-class.html">Map</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../../nim_core_v2/NIMNosScene.html">NIMNosScene</a></span>, <span class="type-parameter"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a></span>&gt;</span>?</span> <span class="parameter-name">nosSceneConfig</span>, </span></li>
<li><span class="parameter" id="-param-serverConfig"><span class="type-annotation"><a href="../../nim_core_v2/NIMServerConfig-class.html">NIMServerConfig</a>?</span> <span class="parameter-name">serverConfig</span>, </span></li>
<li><span class="parameter" id="-param-enableFcs"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">enableFcs</span> = <span class="default-value">true</span>, </span></li>
</ol>})
    </section>
    


    
<section class="summary source-code" id="source">
  <h2><span>Implementation</span></h2>
  <pre class="language-dart"><code class="language-dart">NIMAndroidSDKOptions({
  &#47;&#47;&#47; android configurations
  this.improveSDKProcessPriority = true,
  this.preLoadServers = true,
  this.reducedIM = false,
  this.checkManifestConfig = false,
  this.disableAwake = false,
  this.enabledQChatMessageCache = false,
  this.databaseEncryptKey,
  this.thumbnailSize = 350,
  this.fetchServerTimeInterval = 2000,
  this.customPushContentType,
  this.mixPushConfig,
  this.notificationConfig,
  this.displayNameForMessageNotifierProvider,
  this.avatarForMessageNotifierProvider,
  this.displayTitleForMessageNotifierProvider,
  this.makeNotifyContentProvider,
  this.makeTickerProvider,
  this.makeRevokeMsgTipProvider,
  this.enableV2CloudConversation = false,
  this.enableMessageNotifierCustomization = false,
  this.manualProvidePushTokenProvider,
  this.enableUserInfoProvider = false,

  &#47;&#47;&#47; common configurations
  required String appKey,
  String? sdkRootDir,
  int? cdnTrackInterval,
  int? customClientType,
  bool? shouldSyncStickTopSessionInfos,
  bool? enableReportLogAutomatically,
  String? loginCustomTag,
  bool? enableDatabaseBackup,
  bool? shouldSyncUnreadCount,
  bool? shouldConsiderRevokedMessageUnreadCount,
  bool? enableTeamMessageReadReceipt,
  bool? shouldTeamNotificationMessageMarkUnread,
  bool? enableAnimatedImageThumbnail,
  bool? enablePreloadMessageAttachment,
  bool? useAssetServerAddressConfig,
  Map&lt;NIMNosScene, int&gt;? nosSceneConfig,
  NIMServerConfig? serverConfig,
  bool enableFcs = true,
}) : super(
        appKey: appKey,
        sdkRootDir: sdkRootDir,
        cdnTrackInterval: cdnTrackInterval,
        customClientType: customClientType,
        shouldSyncStickTopSessionInfos: shouldSyncStickTopSessionInfos,
        enableReportLogAutomatically: enableReportLogAutomatically,
        loginCustomTag: loginCustomTag,
        enableDatabaseBackup: enableDatabaseBackup,
        shouldSyncUnreadCount: shouldSyncUnreadCount,
        shouldConsiderRevokedMessageUnreadCount:
            shouldConsiderRevokedMessageUnreadCount,
        enableTeamMessageReadReceipt: enableTeamMessageReadReceipt,
        shouldTeamNotificationMessageMarkUnread:
            shouldTeamNotificationMessageMarkUnread,
        enableAnimatedImageThumbnail: enableAnimatedImageThumbnail,
        enablePreloadMessageAttachment: enablePreloadMessageAttachment,
        useAssetServerAddressConfig: useAssetServerAddressConfig,
        nosSceneConfig: nosSceneConfig,
        serverConfig: serverConfig,
        enableFcs: enableFcs,
      );</code></pre>
</section>


  </div> <!-- /.main-content -->
  <div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
    <!-- The search input and breadcrumbs below are only responsively visible at low resolutions. -->
<header id="header-search-sidebar" class="hidden-l">
  <form class="search-sidebar" role="search">
    <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>
<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
    <li><a href="../../index.html">nim_core_v2</a></li>
    <li><a href="../../nim_core_v2/nim_core_v2-library.html">nim_core_v2</a></li>
    <li><a href="../../nim_core_v2/NIMAndroidSDKOptions-class.html">NIMAndroidSDKOptions</a></li>
    <li class="self-crumb">NIMAndroidSDKOptions constructor</li>
</ol>

    <h5>NIMAndroidSDKOptions class</h5>
    <div id="dartdoc-sidebar-left-content"></div>
  </div><!--/.sidebar-offcanvas-left-->
  <div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->
</main>
<footer>
  <span class="no-break">
    nim_core_v2
      10.9.2-ohos-beta
  </span>
  
</footer>


<script src="../../static-assets/highlight.pack.js?v1"></script>
<script src="../../static-assets/docs.dart.js"></script>

</body>
</html>

